package com.joysuch.wwyt.workflow;

/**
 * 业务流程常量
 */
public class WorkFlowConstants {

    /**
     *  业务流程任务节点 用户/用户组/部门 变量参数设置
     *
     */
    public static final String  TASK_PARAM_ASSIGNEE = "assignee";

    public static final String  TASK_PARAM_ASSIGN_GROUP = "assignGroup";

    public static final String  TASK_PARAM_ASSIGN_KEY = "assigneeKey";

    public static final String  TASK_PARAM_ASSIGN_VALUE = "assignValue";

    public static final String  TASK_PARAM_APPROVE = "approve";

    // act_ru_task table column
    public static final String ACT_RU_TASK_COLUMN_NAME = " NAME_ ";
    public static final String ACT_RU_TASK_COLUMN_ASSIGNEE = " ASSIGNEE_ ";
    public static final String ACT_RU_TASK_COLUMN_OWNER = " OWNER_ ";
    public static final String ACT_RU_TASK_COLUMN_CREATE_TIME = " CREATE_TIME_ ";
    public static final String ACT_RE_PROCDEF_COLUMN_PROC_DEF_ID = " PROC_DEF_ID_ ";
    public static final String ACT_RE_PROCDEF_COLUMN_ID = " ID_ ";
    public static final String ACT_RE_PROCDEF_COLUMN_KEY = " KEY_";

    public static final String ACT_HI_TASKINST_COLUMN_DELETE_REASON = " DELETE_REASON_";
    public static final String ACT_HI_TASKINST_COLUMN_START_TIME = " START_TIME_";

    public static final Integer ACT_STATUS_COMPLETED = 1;
    public static final Integer ACT_STATUS_PINGDING = 0;

    public static final String ACT_HISTORY_DELETE_REASON_COMPLETED = "completed";



    //  业务流程所属系统菜单 depth
    public static final Integer WORK_FLOW_SYSTEM_MENU_DEPTH = 1;

    public static final Integer WORK_FLOW_SYSTEM_MENU_TYPE = 1;

    public static final String WORK_FLOW_SYSTEM_MENU_NAME = "ProcessPage";

    public static final String WORK_FLOW_DOC_MENU_NAME = "DocPage";

    public static final String WORK_FLOW_DOC_MENU_PARENT = "清单管理";
    public static final String WORK_FLOW_DOC_MENU_URL ="/system-turn/norm/make";

    //业务流程节点 formData 状态key
    public static final String WORK_FLOW_TASK_STATUS_KEY = "state";  //状态 -> state
    public static final String WORK_FLOW_TASK_ID_KEY = "code";  //编号 -> code
    public static final String WORK_FLOW_TASK_BIZNAME_KEY = "bizName";  //类型 -> bizName
    public static final String WORK_FLOW_TASK_NAME = "节点名称";
    public static final String WORK_FLOW_ASSIGN_KEY = "指派类型";
    public static final String WORK_FLOW_ASSIGN_VALUE = "指派对象";
    public static final String WORK_FLOW_EXCEPTION_STATUS = "exceptionStatus";


    //表单数据搜索 字段: 日期格式
    public static final String WORK_FLOW_DATE_FORMAT_YYYYMMDDHHMMSS=  "yyyy-MM/dd HH:mm:ss";

    //表单数据搜索 字段名称， 默认所有字段
    public static final String WORK_FLOW_TASK_SEARCH_FIELD_KEY_DEFAULT =  "all";

    //表单数据搜索 字段数据类型
    public static final String WORK_FLOW_TASK_SEARCH_FIELD_FORMAT_DATE =  "date";
    public static final String WORK_FLOW_TASK_SEARCH_FIELD_FORMAT_TEXT =  "text";
    public static final String WORK_FLOW_TASK_SEARCH_FIELD_FORMAT_NUMBER =  "number";

    //表单数据搜索 字段运算符
    public static final String WORK_FLOW_TASK_SEARCH_FIELD_OPT_EQ =  "=";
    public static final String WORK_FLOW_TASK_SEARCH_FIELD_OPT_LIKE =  "LIKE";
    public static final String WORK_FLOW_TASK_SEARCH_FIELD_OPT_BETWEEN =  "BETWEEN";

    //APP 任务节点状态： 已接收，等待整改，已上传，等待验收
    public static final String APP_TASK_STATUS_RECEIVE_TASK =  "已接收";
    public static final String APP_TASK_STATUS_WAIT_RECTIFY =  "等待整改";
    public static final String APP_TASK_STATUS_UPLOAD_TASK =  "已上传";
    public static final String APP_TASK_STATUS_WAIT_ACCEPT =  "等待验收";

    //App 上传任务节点名称
    public static final String APP_TASK_NAME_ACCEPT =  "整改验收";
    public static final String APP_TASK_NAME_CHECK =  "隐患核销";
    public static final String APP_TASK_NAME_RECTIFY  =  "整改管理";

    //APP 对应的业务流程名称： 隐患管理
    public static final String APP_WORKFLOW_HIDDEN_DANGER = "隐患管理";


    //process formJosn key
    public static final String FROM_JSON_KEY_TEMARR = "temArr";
    public static final String FROM_JSON_KEY_TABLEARR = "tableArr";
    public static final String FROM_JSON_KEY_COLUMN1 = "column1";
    public static final String FROM_JSON_KEY_TABLE = "table";
    public static final String FROM_JSON_KEY_LABEL = "label";
    public static final String FROM_JSON_KEY_SELF = "key";
    public static final String FROM_JSON_KEY_TYPE = "type";
    public static final String FROM_JSON_KEY_LIST = "list";
    public static final String FROM_JSON_KEY_SPECIAL = "special";
    public static final String FROM_JSON_KEY_COLUMNLIST = "columnList";
    public static final String FROM_JSON_KEY_COMPONENTCONFIG = "componentConfig";
    public static final String FROM_JSON_KEY_MONITOREPOINT = "monitorePoint";
    public static final String FROM_JSON_KEY_ACCESSTYPE = "accessType";
    public static final String FROM_JSON_KEY_ANALYZABLE = "analyzable";
    public static final String FROM_JSON_KEY_DIA_TYPE = "diaType";
    public static final String KEY_DIA_TYPE_DEPARTMENT = "department";
    public static final String KEY_DIA_TYPE_PERSON = "person";
    public static final String FROM_JSON_KEY_SIGN ="operator_signature";
    public static final String FROM_JSON_TYPE_SIGN ="signature";


    public static final String FROM_JSON_KEY_DIA_TYPE_MAP_PLACE = "mapPlace";






}
